package com.example.administrator.basepro.ui.act;

import android.widget.EditText;

import com.example.administrator.basepro.R;
import com.example.administrator.basepro.base.SimpleActivity;
import com.example.administrator.basepro.model.bean.TableBean;
import com.example.administrator.basepro.model.bean.TableOpeBean;

import butterknife.BindView;

/**
 * Created by Administrator on 2017/9/1 0001.
 */

public class SecureDetailActivity extends SimpleActivity {

    @BindView(R.id.et_codenum)
    EditText et_codenum;

    @BindView(R.id.et_experience)
    EditText et_experience;

    @BindView(R.id.et_hangkongqi)
    EditText et_hangkongqi;

    @BindView(R.id.et_location)
    EditText et_location;

    @BindView(R.id.et_modelnum)
    EditText et_modelnum;

    @BindView(R.id.et_other)
    EditText et_other;

    @BindView(R.id.et_people)
    EditText et_people;

    @BindView(R.id.et_react)
    EditText et_react;

    @BindView(R.id.et_time)
    EditText et_time;

    @BindView(R.id.et_weather)
    EditText et_weather;

    @BindView(R.id.et_title)
    EditText et_title;

    @BindView(R.id.et_expert_suggest)
    EditText et_expert_suggest;

    @BindView(R.id.et_reason)
    EditText et_reason;

    @BindView(R.id.et_result)
    EditText et_result;
    @Override
    protected int getLayout() {
        return R.layout.activity_secure_detail;
    }

    @Override
    protected void initEventAndData() {

        TableBean.MapListBean bean= (  TableBean.MapListBean) getIntent().getExtras().getSerializable("bean");
        setView(bean);
    }

    private void setView(TableBean.MapListBean bean) {
        et_people.setText(bean.getAboutPerson());
        et_codenum.setText(bean.getCode());
        et_experience.setText(bean.getExperience());
        et_expert_suggest.setText(bean.getExpertSuggest());
        et_hangkongqi.setText(bean.getHangkongqi());
        et_location.setText(bean.getLocation());
        et_modelnum.setText(bean.getModelNum());
        et_other.setText(bean.getOther());
        et_react.setText(bean.getXianchang());
        et_reason.setText(bean.getReason());
        et_result.setText(bean.getResult());
        et_time.setText(bean.getTime());
        et_title.setText(bean.getTitle());
    }
}
